package com.woniu.aimd.mapper;

import com.woniu.aimd.pojo.entity.MergedCommentDocument;
import org.apache.ibatis.annotations.*;

@Mapper
public interface MergedCommentMapper {

    @Select("SELECT * FROM notecomments WHERE note_id = #{noteId} AND user_id = #{userId}")
    MergedCommentDocument selectOne(@Param("noteId") String noteId, @Param("userId") String userId);

    int upsert(MergedCommentDocument doc);
}

